@extends('layouts.main')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">欢迎注册</h3>
                </div>
                <div class="panel-body">
					<form method="post" action="{{URL::action('UsersController@create')}}" class="form-signup">
						{{csrf_field()}}
						<ul>
							@foreach($errors->all() as $error)
								<li>{{ $error }}</li>
							@endforeach
						</ul>
						<fieldset>
							<div class="form-group">
								<input type="text" name="username" class="form-control" placeholder="用户名" />
							</div>
							<div class="form-group">
								<input type="email" name="email" class="form-control" placeholder="邮箱" />
						   </div>
							<div class="form-group">
								<input type="password" name="password" class="form-control" placeholder="密码" />
							</div>                       
							<div class="form-group">
								<input type="password" name="password_confirmation" class="form-control" placeholder="确认密码" />
						   </div>
							
							<input type="submit" class="btn btn-large btn-success btn-block" value="马上注册" />
						</fieldset>
					</form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection